package com.scuec.groupfive.service.impl;

import com.scuec.groupfive.mapper.CommunityAnalysisMapper;
import com.scuec.groupfive.service.CommunityAnalysisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CommunityAnalysisServiceImpl implements CommunityAnalysisService {

    @Autowired
    private CommunityAnalysisMapper communityAnalysisMapper;

    @Override
    public List<Map<String, Object>> getInteractionTrends(String startDate, String endDate) {
        return communityAnalysisMapper.getInteractionTrends(startDate, endDate);
    }

    @Override
    public List<Map<String, Object>> getPostTypeDistributions(String startDate, String endDate) {
        return communityAnalysisMapper.getPostTypeDistributions(startDate, endDate);
    }
}